package com.haidechizi.doublecache.process;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class ProcessHolder {

    private static final Map<String, ProcessService> holder = new ConcurrentHashMap<>(8);


    public static void addProcessService(String name, ProcessService processService) {
        holder.put(name, processService);
    }

    public static ProcessService getProcessService(String name) {
        return holder.get(name);
    }
}
